#ifndef CONSOLE_DR
#define CONSOLE_DR

#include <SDL.h>
#include <SDL_TTF.h>
#include <SDL_IMAGE.h>
#include <string>
#include <fstream>
#include <time.h>

#include "../Delta-Ray/input.h"

#define ENG_VER "Delta Ray 0.1"

using namespace std;

class Console{
public:
    Console();
    void Initc(SDL_Surface *a_S_SCREEN,TTF_Font *a_font,SDL_Surface *a_Cbg);
    void Tickc(Input *a_Key);
    void Drawc();

    void NewMsg(string a_msg);
    bool SendCommand(string a_cmd);
private:
    SDL_Surface *S_SCREEN;
    TTF_Font *Font_Arial;
    SDL_Color Color_Line;
    SDL_Surface *S_Line[18],*S_Line_in;
    SDL_Rect Re_Line[18],Re_In;
    SDL_Surface *S_Cbg;
    SDL_Rect Re_Cbg;
    string console_out[18];
    string console_in;
    bool key[64];
    string data,data2;
    time_t dat;
};

#endif
